package com.simple.portal.web;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import freemarker.template.TemplateException;

@Controller
@RequestMapping("/myapp")
public class MyAppController extends AbstractPortalBaseController{
	private final static String JSP_PATH = "_MyApp";
	

	@RequestMapping("/app")
	public String app(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        return getJspPath("app");
    }
	
	@RequestMapping("/practice")
	public String practice(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        return getJspPath("practice");
    }
	
	@RequestMapping("/supply/app")
	public String supplyApp(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        return getJspPath("supply_app");
    }
	
	@RequestMapping("/order/practice")
	public String orderPractice(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        return getJspPath("order_practice");
    }
	
	@RequestMapping("/order/app")
	public String orderApp(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        return getJspPath("order_app");
    }

	@Override
    protected String getBaseJspPath() {
        return JSP_PATH;
    }
}

